package com.happycat.base.exception;

import com.alibaba.fastjson.JSONObject;
import com.happycat.base.R;
import lombok.Data;

/**
 * @author shenbin
 * @email jsonbin@gmail.com
 * @date 2020/08/31 22:59 PM
 */
@Data
public class RestApiException extends RuntimeException{

    private Object response;

    public RestApiException(R rs) {
        this.response = JSONObject.toJSONString(rs);
    }
}
